-- [tsx]: Dialog.tsx
local ____exports = {} -- 1
local ____Dora = require("Dora") -- 4
local Color = ____Dora.Color -- 4
local Label = ____Dora.Label -- 4
local Node = ____Dora.Node -- 4
local Size = ____Dora.Size -- 4
local Sprite = ____Dora.Sprite -- 4
local Vec2 = ____Dora.Vec2 -- 4
local ____config = require("Script.config") -- 5
local Illustration = ____config.Illustration -- 5
____exports.Dialog = function(props) -- 23
	local ____props_0 = props -- 29
	local name = ____props_0.name -- 29
	if name == nil then -- 29
		name = "" -- 25
	end -- 25
	local illustration = ____props_0.illustration -- 25
	if illustration == nil then -- 25
		illustration = Illustration.wu -- 26
	end -- 26
	local text = ____props_0.text -- 26
	if text == nil then -- 26
		text = "" -- 27
	end -- 27
	local color = ____props_0.color -- 27
	if color == nil then -- 27
		color = Color(4278190080) -- 28
	end -- 28
	local root = Node() -- 30
	local dialogbox = Sprite("Image/duihuakuang/duihuakuang_chang.png") -- 32
	if dialogbox then -- 32
		dialogbox.position = Vec2(0, 0) -- 34
		dialogbox:addTo(root) -- 35
	end -- 35
	local ill = Sprite(illustration) -- 38
	if ill then -- 38
		ill.size = Size(400, 400) -- 40
		ill.position = Vec2(450, -160) -- 41
		ill:addTo(root) -- 42
	end -- 42
	local namelabel = Label("sarasa-mono-sc-regular", 30) -- 44
	if namelabel then -- 44
		namelabel.text = name -- 46
		namelabel.color = color -- 47
		namelabel.position = Vec2(-390, -190) -- 48
		namelabel:addTo(root) -- 49
	end -- 49
	local content = Label("sarasa-mono-sc-regular", 30) -- 51
	if content then -- 51
		content.text = text -- 53
		content.position = Vec2(0, -290) -- 54
		content.textWidth = 1000 -- 55
		content.color = color -- 56
		content.alignment = "Left" -- 57
		content:addTo(root) -- 58
	end -- 58
	local function setname(name1) -- 61
		if namelabel then -- 61
			namelabel.text = name1 -- 63
		end -- 63
	end -- 61
	local function setcontent(text1) -- 67
		if content then -- 67
			content.text = text1 -- 69
		end -- 69
	end -- 67
	local function setcolor(color1) -- 84
		if content then -- 84
			content.color = color1 -- 86
		end -- 86
	end -- 84
	local function setillustration(illustration1) -- 89
		if ill then -- 89
			ill:removeFromParent() -- 91
			ill = Sprite(illustration1) -- 92
			if ill then -- 92
				ill.size = Size(400, 400) -- 94
				ill.position = Vec2(350, -160) -- 95
				ill:addTo(root) -- 96
			end -- 96
		end -- 96
	end -- 89
	local dialogueNode = { -- 100
		node = root, -- 100
		setname = setname, -- 100
		setcontent = setcontent, -- 100
		setcolor = setcolor, -- 100
		setillustration = setillustration -- 100
	} -- 100
	return dialogueNode -- 101
end -- 23
return ____exports -- 23